package org.batatasframework.chart.data;

import org.batatasframework.chart.ChartDefinition;
import org.batatasframework.chart.columns.ChartColumnAxis;

public abstract class AbstractChartResolver {

	protected final ChartData data;
	protected final ChartDefinition definition;
	protected final ChartColumnAxis axis;
	protected final int headRowCount;
	
	public AbstractChartResolver(ChartData data){
		this.data = data;
		this.axis = data.axis;
		this.definition = data.definition;
		this.headRowCount = data.getRowspan();
		
	}
	
	protected void internalInitialize(){ }
	
	public AbstractChartResolver resolve(){
		internalInitialize();
		return this;
	}
}
